package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 user
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 脸型id */
    @Excel(name = "脸型id")
    private Long faceId;

    /** 钻石数量 */
    @Excel(name = "钻石数量")
    private Long diamond;

    /** token */
    @Excel(name = "token")
    private String token;

    /** AI生成的class */
    @Excel(name = "AI生成的class")
    private String aiClass;

    /** 我的推荐课程 */
    @Excel(name = "我的推荐课程")
    private String myClass;

    /** 收藏的课程 */
    @Excel(name = "收藏的课程")
    private String favClass;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 微信id */
    @Excel(name = "微信id")
    private String wxOpenid;

    /** 微信key */
    @Excel(name = "微信key")
    private String wxSessionKey;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }

    public void setFaceId(Long faceId) 
    {
        this.faceId = faceId;
    }

    public Long getFaceId() 
    {
        return faceId;
    }

    public void setDiamond(Long diamond) 
    {
        this.diamond = diamond;
    }

    public Long getDiamond() 
    {
        return diamond;
    }

    public void setToken(String token) 
    {
        this.token = token;
    }

    public String getToken() 
    {
        return token;
    }

    public void setAiClass(String aiClass) 
    {
        this.aiClass = aiClass;
    }

    public String getAiClass() 
    {
        return aiClass;
    }

    public void setMyClass(String myClass) 
    {
        this.myClass = myClass;
    }

    public String getMyClass() 
    {
        return myClass;
    }

    public void setFavClass(String favClass) 
    {
        this.favClass = favClass;
    }

    public String getFavClass() 
    {
        return favClass;
    }

    public void setLoginTime(Date loginTime) 
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime() 
    {
        return loginTime;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setWxOpenid(String wxOpenid) 
    {
        this.wxOpenid = wxOpenid;
    }

    public String getWxOpenid() 
    {
        return wxOpenid;
    }

    public void setWxSessionKey(String wxSessionKey) 
    {
        this.wxSessionKey = wxSessionKey;
    }

    public String getWxSessionKey() 
    {
        return wxSessionKey;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phone", getPhone())
            .append("nickname", getNickname())
            .append("faceId", getFaceId())
            .append("diamond", getDiamond())
            .append("token", getToken())
            .append("aiClass", getAiClass())
            .append("myClass", getMyClass())
            .append("favClass", getFavClass())
            .append("loginTime", getLoginTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("avatar", getAvatar())
            .append("wxOpenid", getWxOpenid())
            .append("wxSessionKey", getWxSessionKey())
            .toString();
    }
}
